<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人资料</title>
    <link rel="stylesheet" href="/admin/layui/css/layui.css" media="all">
    <script src="/admin/layui/layui.js"></script>
</head>
<body>
<form class="layui-form" action="/admin/infor/id/{{$row -> id}}" enctype="multipart/form-data" method="post">
    @csrf
    <div class="layui-form-item">
        <label class="layui-form-label">昵称:</label>
        <div class="layui-input-inline">
            <input type="text" name="admin_name" required lay-verify="required" placeholder="请输入您的昵称" autocomplete="off" class="layui-input" value="{{$row -> admin_name}}">
        </div>
        <div class="layui-form-mid layui-word-aux">输入您的ID</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">真实姓名:</label>
        <div class="layui-input-inline">
            <input type="text" name="admin_truename" required lay-verify="required" placeholder="请输入您的真实姓名" autocomplete="off" class="layui-input" value="{{$row -> admin_truename}}">
        </div>
        <div class="layui-form-mid layui-word-aux">输入您的真实姓名</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">Email:</label>
        <div class="layui-input-inline">
            <input type="text" name="admin_email" required lay-verify="required" placeholder="请输入您的Email" autocomplete="off" class="layui-input" value="{{$row -> admin_email}}">
        </div>
        <div class="layui-form-mid layui-word-aux">输入您的email</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">电话号码:</label>
        <div class="layui-input-inline">
            <input type="text" name="admin_tel" required lay-verify="required" placeholder="请输入您的电话号码" autocomplete="off" class="layui-input" value="{{$row -> admin_tel}}">
        </div>
        <div class="layui-form-mid layui-word-aux">输入您的电话号码</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">性别:</label>
        <div class="layui-input-block">
            <select name="admin_sex" lay-verify="required">
                <option value="{{$row -> admin_sex}}">{{$row -> admin_sex}}</option>
                <option value="男">男</option>
                <option value="女">女</option>

            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <input class="layui-btn" type="submit" value="确认"/>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<script>
    //Demo
    layui.use('form', function(){
        var form = layui.form;

        //�����ύ
        form.on('submit(formDemo)', function(data){
            layer.msg(JSON.stringify(data.field));
            return false;
        });
    });
</script>
</body>
</html>
